package com.example.teamtribe.main.mine.setting;

import com.example.teamtribe.utils.HttpUtil;
import com.example.teamtribe.utils.URLStore;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Response;

public class SettingModel {

    public void logout(String token) {
        Map<String, String> params = new HashMap<>();
        params.put("TeamTribeToken", token);
        HttpUtil.post(URLStore.USER_LOGOUT, params, new Callback() {
            @Override
            public void onFailure(Call call, IOException e) {

            }

            @Override
            public void onResponse(Call call, Response response) throws IOException {
                response.close();
            }
        });
    }
}